package com.pacai.Method;

public class MethodParameter01 {

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        AA1 aa = new AA1();
        aa.swap(a,b);
        System.out.println(a + " " + b);
    }
}


class AA1{
    public void swap(int a, int b){
        System.out.println("交换前:" + a + b);
        int tmp = a;
        a = b;
        b = tmp;
        System.out.println("交换后:" + a + b);
    }
}